package com.nbsaas.boot.pay.rest.convert;

import com.nbsaas.boot.pay.data.entity.CashConfig;
import com.nbsaas.boot.pay.api.domain.request.CashConfigRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 提现配置请求对象转换成实体对象
*/

public class CashConfigEntityConvert  implements Converter<CashConfig, CashConfigRequest> {

    @Override
    public CashConfig convert(CashConfigRequest source) {
        CashConfig result = new CashConfig();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

